<div class="digndingUser-choose">
	<div class="btnWrap">
		<span v-if="ordefalut && message=='approve'" style="color:#cccccc;">审批人已由管理员预置,并将自动去重</span><!--等于审批并且有默认值-->
		<a v-if="message=='approve' && !ordefalut" @click="openDingDing"  href="javascrpt:;">添加审批人</a><!--等于审批没有有默认值-->
		<span v-if="message!='approve'"  style="color:#cccccc;">（审批通过后，通知抄送人)</span> <!--抄送--> 
	</div>
	<ul  class="userList">
		<li v-for="(o,index) in userData" @click="message=='approve'?(ordefalut?(openDingDing(o)):''):''" :class="{'arrowAfter':message=='approve'&& (userData.length>1) &&index!=(userData.length-1) }"  ><!--等于审批-->
			<img :src="o.avatar" v-if="o.avatar && o.type!='more' " alt="" />
			<span class="img" :style="{'background-color':bg[index%6]}"  v-if="!o.avatar && o.type!='more'">{{  (o.realname ||  o.name).substring(( o.realname || o.name).length-2,2)  }}</span>
			<img v-if="o.type=='more' && message=='approve'" :src="o.avatar?(o.avatar):'/approve/pc/images/addUser.png'" alt="" />
			<button v-if="!ordefalut || (message!='approve' && !o.type)" class="iconBtn deleteBtn" @click="remove($event,index,o)">
				<i class="icon iconfont">&#xe50c;</i>
			</button >
			<button v-if="ordefalut && o.userid_list" class="iconBtn updateBtn">
				<i class="icon iconfont">&#xe61f;</i>
			</button>
			<span class="userLabel" style="left: 6px;">{{ o.realname || o.name }}</span>
			<span class="userLabel" v-if="o.group_name" :class="{'bgblue':o.emplId,'gray':!o.emplId}">{{ o.group_name }}</span>
		</li>
		<li v-if="message!='approve'">
			<a href="javascrpt:;" @click="openDingDing" >添加抄送人</a>
		</li>
	</ul>
</div>
